package com.ruibang.glass.equipment.entity.device;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@ApiModel
@TableName(value = "g_equipment_pressure_pipe")
/**
 * 压力管道
 */
public class PressurePipe extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "使用单位")
    private String usingUnit;
    @ApiModelProperty(value = "管道地点")
    private String pipeLocation;
    @ApiModelProperty(value = "管道名称")
    private String pipeName;
    @ApiModelProperty(value = "设计单位")
    private String designUnit;
    @ApiModelProperty(value = "安装单位")
    private String installationUnit;
    @ApiModelProperty(value = "安装年月")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate installationMonth;
    @ApiModelProperty(value = "投用年月")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate putIntoUseTime;
    @ApiModelProperty(value = "直径/厚度mm")
    private String diameterThickness;
    @ApiModelProperty(value = "管道长度m")
    private Float pipeLength;
    @ApiModelProperty(value = "压力Mpa")
    private Float pressure;
    @ApiModelProperty(value = "温度")
    private String temperature;
    @ApiModelProperty(value = "介质")
    private String medium;
    @ApiModelProperty(value = "管道材质")
    private String pipeMaterial;
    @ApiModelProperty(value = "管道级别")
    private String pipeLevel;
    @ApiModelProperty(value = "检验日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate inspectionDate;
    @ApiModelProperty(value = "检验报告编号")
    private String inspectionReportNumber;
    @ApiModelProperty(value = "下次检验时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate nextInspectionTime;
    @ApiModelProperty(value = "状态")
    private String status;
    @ApiModelProperty(value = "是否删除(1：是 0：否)")
    @TableLogic
    private String isDelete;

}
